using HelloWorld.WPF.Plugin;

namespace HelloFormApp
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            // 添加一个按钮以打开 WPF 窗口
            Button button = new Button();
            button.Text = "Open WPF Window";
            button.Dock = DockStyle.Top;
            button.Click += Button_Click;
            this.Controls.Add(button);
        }

        private void Button_Click(object? sender, EventArgs e)
        {
            // 创建并显示 WPF 窗口
            var wpfWindow = new HelloWindow();
            wpfWindow.Show(); // 或者使用 wpfWindow.ShowDialog() 显示模态窗口
        }
    }
}
